package com.egao.gzh.entity.reply;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;

/**
 * @author Damon
 * @create 2020-08-26 16:27
 */
@XStreamAlias("xml")
public class TextMessage extends BaseMessage {

    public TextMessage(Map<String, String> requestMap, String content) {
        super(requestMap);
        //设置文本消息的msgType为text
        this.setMsgType("text");
        this.content = content;
    }

    @XStreamAlias("Content")
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "TextMessage{" +
                "content='" + content + '\'' +
                ", toUserName='" + getToUserName() + '\'' +
                ", fromUserName='" + getFromUserName() + '\'' +
                ", createTime='" + getCreateTime() + '\'' +
                ", msgType='" + getMsgType() + '\'' +
                "} ";
    }
}
